import fetch from '@/common/utils/http'

/* 客户信息列表-分页 */
export const infoList = (data: any) =>
  fetch({
    url: '/crm/action/config/customer/field/list',
    method: 'POST',
    data
  })

/* 移除 */
export const removeField = (data: any) =>
  fetch({
    url: '/crm/action/config/customer/field/delete',
    method: 'POST',
    data
  })

/* 新建 */
export const addField = (data: any) =>
  fetch({
    url: '/crm/action/config/customer/field/create',
    method: 'POST',
    data
  })

/* 更新 */
export const updateField = (data: any) =>
  fetch({
    url: '/crm/action/config/customer/field/update',
    method: 'POST',
    data
  })

/* 改变顺序 */
export const sortField = (data: any) =>
  fetch({
    url: '/crm/action/config/customer/field/sort',
    method: 'POST',
    data
  })
